package com.yixun.qfbao.response.premises.detail;

import java.io.Serializable;

import com.yixun.qfbao.apidto.PremisesDetailResDto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author zilong.liu
 * @date 2020-8-12
 * 	案场人员信息
 */
@Data
public class CaseMemberInfo implements Serializable{

	private static final long serialVersionUID = 1L;
	
	public CaseMemberInfo() {
	}

	public CaseMemberInfo(PremisesDetailResDto detailResDto) {
		this.name = detailResDto.getCaseMemberName();
		this.phone = detailResDto.getCaseMemberPhone();
		this.roleName = detailResDto.getCaseMemberRoleName() == null? "项目经理": detailResDto.getCaseMemberRoleName();
	}

	/**
	 * 需要通过partner_info表中查询
	 */
	@ApiModelProperty(value = "案场人员名称")
	private String name;
	
	@ApiModelProperty(value = "案场人员电话")
	private String phone;
	
	/**
	 * 需要通过partner的角色关联 sys_tm_channel_role表
	 */
	@ApiModelProperty(value = "角色名称")
	private String roleName;
}
